var BASIC_URL = "http://192.168.17.146:70";
// var BASIC_URL = "http://192.168.17.143:70";
var COMMON_URL = BASIC_URL + "/common";
//用户
var CUSTOMER_URL = BASIC_URL + "/customer";
//维修人员
var SERVICE_URL = BASIC_URL + "/serviceUser";
//上传文件
var FILUPLOAD_URL = BASIC_URL + "/file";
//vos文件路径
var COS_FILE_URL = "https://after-sale-1256187897.cos.ap-guangzhou.myqcloud.com/";
//微信签名
var WX_SIGN_URL = 'http://wngwi.xin:72/weChat/wxSign';//test
// var WX_SIGN_URL = BASIC_URL + '/weChat/wxSign';
Server = {
    postToCustomer: function(url, param, callback){
        $.post( CUSTOMER_URL + url, param, callback);
    },
    getFromCustomer: function(url, param, callback){
        $.get( CUSTOMER_URL + url, param, callback);
    },
    postToServiceUser: function(url, param, callback){
        $.post( SERVICE_URL + url, param, callback);
    },
    getFromServiceUser: function(url, param, callback){
        $.get( SERVICE_URL + url, param, callback);
    },
    postToCommon: function(url, param, callback){
        $.post( COMMON_URL + url, param, callback);
    },
    getFromCommon: function(url, param, callback){
        $.get( COMMON_URL + url, param, callback);
    },
    getFromService : function(url, params, callback) {
		$.get(SERVICE_URL + url, params, callback);
	},
	postToService : function(url, params, callback) {
		$.post(SERVICE_URL + url, params, callback);
	}
}